package operatori;
import Arbore.*;

public abstract class Operator extends Nod{
    public abstract double calcul();
    //metoda calcul se va ocupa de calculele care trebuie sa le faca un operator
    //verifica daca cei doi operanzi exista si apoi paseaza metodei calcul(double, double) 
    //sarcina de a efectua calculele.

    public String toString(){
        return concatTermeni(fStang.toString(), fDrept.toString());
    }
    public abstract double calcul(double aux1, double aux2);
    public abstract String concatTermeni(String aux1, String aux2);
}
